<?php

namespace app\models;

use Yii;
/**
 * This is the model class for table "sys".
 *
 * @property int $id
 * @property string $sys_name 系统名
 * @property string|null $gitee 仓库名
 * @property string|null $target_dir 目标地址 git -C target_dir pull 用
 */
class Sys extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'sys';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['sys_name'], 'required'],
            [['sys_name'], 'string', 'max' => 20],
            [['gitee'], 'string', 'max' => 32],
            [['target_dir'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'sys_name' => 'Sys Name',
            'gitee' => 'Gitee',
            'target_dir' => 'Target Dir',
        ];
    }
}
